const baseURL: string = 'open.feishu.cn'; // boe 环境，正式环境open.feishu.cn
export const lark = {
    env: {
        appId: 'cli_a03ee1eb59b9500e',
        appSecret: 'W50q9f8mhOYxx7o1clYuEdIBEiTYXc0c',
        port: 3000, // 服务端口号
        hostname: '192.168.0.103', // 服务域名
        redis: {
            port: 7777,
            host: '47.102.85.49',
            password: 'PhokDBiOybX8r9aTYFLKGs',
        },
        api: { // 用到开放平台url地址
            AUTH_OPEN_API: { // 凭证相关的所有接口
                APP_ACCESS_TOKEN_INTERNAL: `https://${baseURL}/open-apis/auth/v3/app_access_token/internal/`,
                APP_ACCESS_TOKEN: `https://${baseURL}/open-apis/auth/v3/app_access_token/`,
                TENANT_ACCESS_TOKEN_INTERNAL: `https:/${baseURL}/open-apis/auth/v3/tenant_access_token/internal/`,
                TENANT_ACCESS_TOKEN: `https:/${baseURL}/open-apis/auth/v3/tenant_access_token/`,
                APP_TICKET: `https://${baseURL}/open-apis/auth/v3/app_ticket/resend/`,
                AUTHEN_V1_ACCESS_TOKEN: `https://${baseURL}/open-apis/authen/v1/access_token`,
                REFRESH_ACCESS_TOKEN: `https://${baseURL}/open-apis/authen/v1/refresh_access_token`,
                USER_INFO: `https://${baseURL}/open-apis/authen/v1/user_info`,
                JSSDK_TICKET: `https://${baseURL}/open-apis/jssdk/ticket/get`,
            },
            DOCS_OPEN_API: { // 云文档相关接口
                DRIVE: { // 文件夹管理
                    EXPLORER_V2_ROOT_FOLDER: `https://${baseURL}/open-apis/drive/explorer/v2/root_folder/meta`,
                    EXPLORER_V2_FOLDER_META: `https://${baseURL}/open-apis/drive/explorer/v2/folder/{0}/meta`,
                    EXPLORER_V2_FOLDER_CHILDREN: `https://${baseURL}/open-apis/drive/explorer/v2/folder/{0}/children`,
                    FILES_V1_UPLOAD_ALL: `https://${baseURL}/open-apis/drive/v1/files/upload_all`,
                    EXPLORER_V2_FOLDER: `https://${baseURL}/open-apis/drive/explorer/v2/folder/{0}`,
                },
                DOC: { // 飞书 doc
                    DOC_V2_META: `https://${baseURL}/open-apis/doc/v2/meta/{0}`,
                    DOC_V2_FILE: `https://${baseURL}/open-apis/drive/explorer/v2/file/docs/{0}`,
                    DOC_V2_CREATE: `https://${baseURL}/open-apis/doc/v2/create`,
                },
                SHEET: { // 飞书 sheet
                    SHEETS_V2_META: `https://${baseURL}/open-apis/sheets/v2/spreadsheets/{0}/metainfo`,
                    SHEETS_V2_FILE: `https://${baseURL}/open-apis/drive/explorer/v2/file/spreadsheets/{0}`,
                    SHEETS_V3_CREATE: `https://${baseURL}/open-apis/sheets/v3/spreadsheets`,
                },
                SUITE: { // 用户上传文件
                    SUITE_META: `https://${baseURL}/open-apis/suite/docs-api/meta`,
                },
            },
        },
    },
};
